package com.runfast.waimai.service.impl;

import com.runfast.common.service.BaseService;
import com.runfast.waimai.dao.mapper.RunfastActivityMapper;
import com.runfast.waimai.dao.model.RunfastActivity;
import com.runfast.waimai.dao.model.RunfastActivityExample;
import com.runfast.waimai.service.RunfastActivityService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class RunfastActivityServiceImpl extends BaseService<RunfastActivity, Integer, RunfastActivityExample> implements RunfastActivityService {
   public List<RunfastActivity> selectByExampleNew(Map<Object,Object> map){
        RunfastActivityMapper runfastActivityMapper=(RunfastActivityMapper)this.mapper;
        return runfastActivityMapper.selectByExampleNew(map);
    }
   public Integer countByExampleNew(Map<Object,Object> map){
        RunfastActivityMapper runfastActivityMapper=(RunfastActivityMapper)this.mapper;
        return runfastActivityMapper.countByExampleNew(map);
    }
    public List<RunfastActivity> selectByMapWithPageable(Map<Object,Object> map){
        RunfastActivityMapper runfastActivityMapper=(RunfastActivityMapper)this.mapper;
        return runfastActivityMapper.selectByMapWithPageable(map);
    }
    public Integer countByMap(Map<Object,Object> map){
        RunfastActivityMapper runfastActivityMapper=(RunfastActivityMapper)this.mapper;
        return runfastActivityMapper.countByMap(map);
    }
}